package com.cloud.mall.test.client;

import com.cloud.mall.dto.test.Product;
import com.cloud.mall.result.GeneralResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: 梁二东
 * @Date: 2024/12/16 11:43
 * @Description:
 **/
@FeignClient(name = "product-service")
public interface ProductServiceClient {

    /**
     * 查询商品信息
     */
    @GetMapping("/testproduct/selectByCommodityCode")
    GeneralResponse<Product> selectByCommodityCode(@RequestParam("commodityCode") String commodityCode);
}
